package com.novots;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.cloud.context.config.annotation.RefreshScope;

@EnableDiscoveryClient //将config-server注册到上面配置的服务注册中心
@EnableConfigServer
@SpringBootApplication
@RefreshScope
public class RuoyiConfig {

    public static void main(String[] args) {
        SpringApplication.run(RuoyiConfig.class,args);
    }
}
